import { AppConfig, IAppConfig, appRegToken } from './app.config'
import { RedisConfig, IRedisConfig, redisRegToken } from './redis.config'
import { JwtConfig, IJwtConfig, jwtRegToken } from './jwt.config'

export * from './app.config'
export * from './redis.config'
export * from './jwt.config'

export interface IAllConfig {
	[appRegToken]: IAppConfig
	[redisRegToken]: IRedisConfig
	[jwtRegToken]: IJwtConfig
}

export type ConfigKeyPaths = RecordNamePaths<IAllConfig>

export default {
	AppConfig,
	RedisConfig,
	JwtConfig,
}
